using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Skeletons
{
    public partial class FormPenWidth : Form
    {
        private AppContext m_appContext;

        public FormPenWidth(AppContext context)
        {
            InitializeComponent();
            m_appContext = context;
        }

        public System.Drawing.Drawing2D.DashStyle PenStyle
        {
            get {return System.Drawing.Drawing2D.DashStyle.Solid; }
        }

        public System.Drawing.Drawing2D.PenType FillStyle
        {
            get { return System.Drawing.Drawing2D.PenType.SolidColor; }
        }

        public float PenWidth
        {
            get { return (float) numPenWidth.Value; }
        }

        public Color PenColor
        {
            get { return txtShowColor.BackColor; }
        }

        private void butOkay_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            Close();
        }

        private void FormPenWidth_Load(object sender, EventArgs e)
        {
            txtShowColor.BackColor = m_appContext.PenColor;
        }

        private void btnPickColor_Click(object sender, EventArgs e)
        {
            
        }
    }
}